{% include 'QLGL/QLGL_index.html' %}

<div class="am-cf admin-main">
  {% include 'sidebar.html' %}
  <!-- content start -->
  <div class="admin-content">
    <div class="admin-content-body">
      <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">巡检业务</strong></div>
      </div>
      <div class="am-g" style="position: absolute;height: 100%;right: 0px;left: 260px;width: auto;">

        {% include 'QLGL/XJYW/QLGL_XJYW_SIDEBAR.html' %}
        
        <div class="am-u-sm-10" style="position: absolute;width:auto;right:0;left: 200px;overflow-y: scroll;bottom: 100px;top: 0px;">
          <div class="am-u-sm-12 am-u-md-6">
            <div class="am-btn-toolbar">
              <div class="am-btn-group am-btn-group-xs">
              <strong>检查类型:</strong>
                <label class="am-radio-inline">
                  <input type="radio" name="check_type"  onclick="select(1)" data-am-ucheck checked> 日常检查
                </label>
                <label class="am-radio-inline">
                  <input type="radio" name="check_type"  onclick="select(2)"  data-am-ucheck  disabled> 经常检查
                </label>
                <label class="am-radio-inline">
                  <input type="radio" name="check_type"  onclick="select(3)"  data-am-ucheck  disabled> 定期检查
                </label>
              </div>
            </div>
          </div>

          <table id="grid" class="am-table am-table-striped am-table-hover table-main am-table-compact am-text-nowrap" width="100%">
              <thead>
              <tr>
                <th class="table-title">序号</th>
                <th class="table-title ">病害编号</th>
                <th class="table-type">桥梁名称</th>
                <th class="table-type">病害内容</th>
                <th class="table-type">病害详情</th>
                <th class="table-type">桩号</th>
                <th class="table-date">录入日期</th>
                <th class="table-type">病害状态</th>
                <th class="table-set">操作</th>
              </tr>
              </thead>
              <tbody>
                
              </tbody>
            </table>

        </div>
      </div>
    </div>
  </div>
</div>
{% include 'footer.html' %}
<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="/static/assets/js/jquery.min.js"></script>
<!--<![endif]-->
<script src="/static/assets/js/amazeui.min.js"></script>
<script src="/static/assets/js/amazeui.tree.js"></script>
<script type="text/javascript" src="/static/assets/js/layer.js"></script>
<script src="/static/assets/datatables/amazeui.datatables.min.js"></script>
<script src="/static/assets/dialog/amazeui.dialog.min.js"></script>
<link rel="stylesheet" type="text/css" href="/static/assets/css/amazeui.tree.css" />
<script src="/static/assets/js/app.js"></script>
<style type="text/css">
  .li_a {
    color: #5c5c5c;
  }
</style>
<script type="text/javascript">
  $("#collapse-nav1").addClass("am-in");
  $("#qlgl").removeClass("am-collapsed");
  $("#qlglOxjyw").css("color", "#3399CC");
  $("#qlgl").css("color", "#3399CC");
  $("#xjywObhk").removeClass("li_a");


$(document).ready(function(){
  select(1);
})
function select(check_type){
    if ($('#grid').hasClass('dataTable')) {
      dttable = $('#grid').dataTable();
      dttable.fnClearTable(); //清空一下table
      dttable.fnDestroy(); //还原初始化了的datatable
    }

  var t = $('#grid').DataTable({
  //配置DataTables默认参数



    bInfo: true,//页脚信息
    responsive: true,
    searching: true,
    lengthChange: false,
    paging: true,
    bStateSave: true, //保存页面状态
    aLengthMenu: [[10], [10]],
    ajax: {

      url: "/QLXJ_XJYW_BHK_DATA/"
    },


    
    //每页显示五条数据
    //pageLength: 'all',
    columns: [
    
      {  
        data : null,  
        bSortable : false,  
        targets : 0,  
        //width : "30px",  
        render : function(data, type, row, meta) {  
          // 显示行号  
          var startIndex = meta.settings._iDisplayStart;  
          return startIndex + meta.row + 1;  
        }  
      },
    
      {
        "data": "bhkcode"
      },
      {
        "data": "bridge_name"
      },
      {
        "data": "bhkparam"
      },

      {
        "data": "bhkdises"
      },
      {
        "data": "bhkpile"
      },
      {
        "data": "bhktime"
      },
      {
        "data": "bhkstatus"
      }
      ,
      {
        "data": "bhktime"
      }
    ],
    
    
    "columnDefs": [
      // "visible": false,
      //"targets": 0



      {
        type: 'chinese-string',
        targets: '_all'
      } //中文排序
      ,
      {
        "render": function(data, type, row, meta) {
          return '<a href="/QLXJ_XJYW_BHK_XQ/?diseaseid='+row.JCtaskid+'">详情</a>'
                  
        },
        //指定是第二列
        "targets": 8
      }
    ],
    

  });
}

</script>
 
</body>

</html>